home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / VideoToolbox 96.06.15 / VideoToolboxSources / mc68881.h < prev    next >
Text File  |  1995-08-14  |  1KB  |  42 lines

  1. /*
  2. mc68881.h 
  3. Defines MPW C's mc68881 and mc68020 preprocessor symbols for THINK C and
  4. Metrowerks CodeWarrior C, so that your programs can use them in "if" statements
  5. without worrying about which compiler you're using. The symbols are 1 (i.e.
  6. true) if the compiled code requires the chip (or better) and 0 otherwise.
  7.  
  8. CAUTION: Do not #include this file before FixMath.h
  9.  
  10. NOTE:
  11. Apple's latest (6/95) Universal Header files (and VideoToolbox.h) define new macros:
  12. GENERATING68k, GENERATINGPOWERPC, GENERATIONG68881, which provide a more standard
  13. way of determining the hardware target. I recommend using those macros instead of
  14. including this file. 
  15.  
  16. HISTORY:
  17. 1992 dgp wrote it
  18. 7/28/94 dgp added support for Metrowerks CodeWarrior C
  19. */
  20. #pragma once
  21.  
  22. #if THINK_C && THINK_C==1            /* THINK C 4 */
  23.     #define mc68881 _MC68881_
  24.     #define mc68020 _MC68020_
  25. #endif
  26. #if (THINK_C && THINK_C>1) || THINK_CPLUS || SYMANTEC_C    /* SYMANTEC C,C++, THINK C 5,6,7,8, C++ */
  27.     #if __option(mc68881)
  28.         #define mc68881 1
  29.     #else
  30.         #define mc68881 0
  31.     #endif
  32.     #if __option(mc68020)
  33.         #define mc68020 1
  34.     #else
  35.         #define mc68020 0
  36.     #endif
  37. #endif
  38. #if defined(__MWERKS__)                /* Metrowerks CodeWarrior C */
  39.     #define mc68881 __MC68881__
  40.     #define mc68020 __MC68020__
  41. #endif
  42.